<script>
import axios from 'axios'
export default {
  name: 'App',
  data () {
    return {
      msg: '一节课不旷，一节课不听，主打的就是陪伴。',
      count: 100,
      list: []
    }
  },
  mounted () {
    axios.get('/api/RoomApi/live').then(res => {
      this.list = res.data.data
    })
  }
}
</script>
<template>
  <div>
    <h1>{{ msg }} -- {{ count }}</h1>
    <button @click="count++">点击</button>

    <ul>
      <li v-for="item in list">{{ item.nickname }}</li>
    </ul>
  </div>
</template>
